import { RouteRecordRaw } from 'vue-router'

export default {
	path: '/',
	name: 'layout',
	redirect: '/',
	component: () => import(/** webpackChunkName: 'home'  */ '@/layout/index.vue'),
	meta: {},
	children: [
		{
			path: '/',
			name: 'homePage',
			component: () => import(/** webpackChunkName: 'home'  */ '@/views/home/index.vue'),
			meta: {
				title: '信息介绍',
				isShow: true,
				parentRouter: 'layout'
			},
			children: []
		},
		{
			path: '/project',
			name: 'projectPage',
			component: () => import(/** webpackChunkName: 'project'  */ '@/views/project/index.vue'),
			meta: {
				title: '项目模块',
				isShow: true,
				parentRouter: 'layout'
			},
			children: []
		},
		{
			path: '/p',
			name: 'parentPage',
			meta: {
				title: '父菜单',
				isShow: true,
				parentRouter: 'layout'
			},
			children: [
				{
					path: '/p/child1',
					name: 'child1Page',
					meta: {
						title: '子菜单1',
						isShow: true,
						parentRouter: 'parentPage'
					}
				},
				{
					path: '/p/child2',
					name: 'child2Page',
					meta: {
						title: '子菜单2',
						isShow: true,
						parentRouter: 'parentPage'
					}
				},
				{
					path: '/p/child3',
					name: 'child3Page',
					meta: {
						title: '子菜单3',
						isShow: true,
						parentRouter: 'parentPage'
					}
				}
			]
		},
		{
			path: '/user',
			name: 'userPage',
			component: () => import(/** webpackChunkName: 'user'  */ '@/views/user/index.vue'),
			meta: {
				title: '用户列表',
				isShow: true,
				parentRouter: 'layout'
			},
			children: []
		},
		{
			path: '/role',
			name: 'rolePage',
			component: () => import(/** webpackChunkName: 'role'  */ '@/views/role/index.vue'),
			meta: {
				title: '角色列表',
				isShow: true,
				parentRouter: 'layout'
			},
			children: []
		},
		{
			path: '/auth',
			name: 'authPage',
			component: () => import(/** webpackChunkName: 'auth'  */ '@/views/auth/index.vue'),
			meta: {
				title: '权限模块',
				isShow: true,
				parentRouter: 'layout'
			},
			children: []
		}
	]
} as RouteRecordRaw
